import request from '@/api/request'

//数据列表
export function index(params) {
	return request({ url: '/app/PickMaterial/index',method: 'post',data: params})
}



//修改排序开关
export function updateExt(params) {
	return request({ url: '/app/PickMaterial/updateExt',method: 'post',data: params})
}



//添加
export function add(params) {
	return request({ url: '/app/PickMaterial/add',method: 'post',data: params})
}



//修改
export function update(params) {
	return request({ url: '/app/PickMaterial/update',method: 'post',data: params})
}

export function getUpdateInfo(params) {
	return request({ url: '/app/PickMaterial/getUpdateInfo',method: 'post',data: params})
}



//删除
export function del(params) {
	return request({ url: '/app/PickMaterial/delete',method: 'post',data: params})
}



//查看详情
export function detail(params) {
	return request({ url: '/app/PickMaterial/detail',method: 'post',data: params})
}


//反审领料单
export function unAudit(params) {
	return request({ url: '/app/PickMaterial/unAudit',method: 'post',data: params})
}

//审核订单
export function audit(params) {
	return request({ url: '/app/PickMaterial/audit',method: 'post',data: params})
}

//获取用料清单明细
export function getPpbom(params) {
	return request({ url: '/app/PickMaterial/get_pick_ppbom',method: 'post',data: params})
}

//生成新的领料单详情
export function changePick(params) {
	return request({ url: '/app/PickMaterial/change_pick_material',method: 'post',data: params})
}

export function savePick(params) {
	return request({ url: '/app/PickMaterial/save_pick_material',method: 'post',data: params})
}

//删除领料单分录
export function deleteDetail(params) {
	return request({ url: '/app/PickMaterial/delete_detail',method: 'post',data: params})
}

